#include <stdio.h>

int main(int argc, const char *argv[])
{
	int num = 0;
	int g = 0;
	int s = 0;
	int b = 0;
	for(num = 100; num < 1000; num++){
		g = num % 10;
		s = num % 100 / 10;
		b = num / 100;
		if(g*g*g + s*s*s + b*b*b == num){
			printf("[%d]是水仙花数\n", num);
		}
	}

	return 0;
}
